package element.base;

public class Word extends TreeNode {
    private String content;
    private Wordtype type;
    private int lindex;

    public Word(String content, Wordtype type, int lindex) {
        this.content = content;
        this.type = type;
        this.lindex = lindex;
    }

    public Wordtype getType() {
        return this.type;
    }

    public int getLindex() {
        return lindex;
    }

    public String getContent() {
        return content;
    }

    @Override
    public String toString() {
        return type.toString() + " " + content;
    }
}
